import { http } from "@/utils/http";

/**
 流程接口
 **/
// 大楼数据
export const visualizationBuilding = (data: object) => {
  return http.request("post", `/digitaltwins/api/v1/visualization/building`, {
    data
  });
};

//首页
export const visualizationIndex = (data: object) => {
  return http.request("post", `/digitaltwins/api/v1/visualization/index`, {
    data
  });
};

// 楼层数据
export const visualizationFloor = (data: object) => {
  return http.request("post", `/digitaltwins/api/v1/visualization/floor`, {
    data
  });
};

//区域设备

export const visualqueryByAreaId = (data: object) => {
  return http.request("post", `/digitaltwins/api/v1/visualization/queryByPositionId`, {
    data
  });
};
//设备信息

export const visualqueryById = (data: object) => {
  return http.request("post", `/digitaltwins/api/v1/visualization/queryByEquipmentId`, {
    data
  });
};

//查询设备告警信息
export const visualqueryAlarmById = (data: object) => {
  return http.request("post", `/digitaltwins/api/v1/equipment/queryAlarmById`, {
    data
  });
};

//查询员工值班计划
export const visualdutyQuery = (data: object) => {
  return http.request("post", `/account/api/v1/index/duty/query`, {
    data
  });
};

//报警信息
export const visualizationAlarm = (data: object) => {
  return http.request("post", `/digitaltwins/api/v1/visualization/alarm`, {
    data
  });
};

//查询可视化页面初始动态属性数据v0.2.0
export const visualizationStats = (data: object) => {
  return http.request("post", `/digitaltwins/api/v1/visualization/initial/query`, {
    data
  });
};
